#函数get_multiple_func嵌套定义了函数multiple
def get_multiple_func(n):
    def multiple(x):
        return n * x
    return multiple

double = get_multiple_func(2)
triple = get_multiple_func(3)

print(double(5))
print(triple(6))